package de.mizi.tilemap.renderer;

/**
 * This class represents some of the data that the TilemapRenderer needs to
 * implement the scrolling of the map.
 * @author mizi
 *
 */
public class TilemapViewport {
	/**
	 * The x position in tiles of this TilemapViewport object.
	 */
	public int x;
	/**
	 * The y position in tiles of this TilemapViewport object.
	 */
	public int y;
	/**
	 * The width in tiles of this TilemapViewport object.
	 */
	public int widthInTiles;
	/**
	 * The height in tiles of this TilemapViewport object.
	 */
	public int heightInTiles;
	
	/**
	 * Constructs a new TilemapViewport object.
	 */
	public TilemapViewport() {
		this(0, 0, 1, 1);
	}
	
	/**
	 * Constructs a new TilemapViewport object.
	 * @param x the x position in tiles
	 * @param y the y position in tiles
	 * @param widthInTiles the width in tiles
	 * @param heightInTiles the height in tiles
	 */
	public TilemapViewport(int x, int y, int widthInTiles, int heightInTiles) {
		this.x = x;
		this.y = y;
		this.widthInTiles = widthInTiles;
		this.heightInTiles = heightInTiles;
	}
}
